﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;

using GPSCrowdSource.Algorithms;
using GPSCrowdSource.DataStructures;

namespace GPSCrowdSourceTests {

  public class TestBase {

    public void AssertEqual(double v1, double v2, String msg) {
      double diff = Math.Abs(v2-v1);
      Assert.IsTrue(diff <= 1.0/1000.0,msg);
      }
    }
  }
